import http from "@/utils/request";

interface IResData{
  code:string
  message:string
  data:{
    token:string
    adminname:string
  }
}
//登录
function loginRequest(adminname:string,password:string){
  return http<IResData>({
    method:'post',
    url:"/admin/admin/login",
    data: {adminname,password},
  })
}

export {loginRequest}